package com.qf.mapper;

import com.qf.entity.AppVersion;
import com.qf.vo.AppVersionVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface AppVersionMapper extends Mapper<AppVersion> {

    @Select("SELECT * FROM app_version_view WHERE app_id=#{appId} ORDER BY  updated DESC LIMIT 3")
    List<AppVersionVO> findAppVersionByAppId(@Param("appId") Integer appId);}
